<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'rentalunit-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php //echo $form->labelEx($model,'idRentalProperty'); ?>
		<?php echo $form->hiddenField($model,'idRentalProperty'); ?>
		<?php //echo $form->error($model,'idRentalProperty'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Unit Number'); ?>
		<?php echo $form->textField($model,'UnitNumber',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'UnitNumber'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Software Unit Code'); ?>
		<?php echo $form->textField($model,'SoftwareUnitCode',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'SoftwareUnitCode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Rental Amount'); ?>
		<?php echo $form->textField($model,'RentalAmount'); ?>
		<?php echo $form->error($model,'RentalAmount'); ?>
	</div>

	<div class="row compactRadioGroup">
    	<?php echo $form->labelEx($model,'Subsidized Rent'); ?><br />
		<?php // echo $form->textField($model,'SubsidizedRent',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->radioButtonList($model,'SubsidizedRent',array('Yes'=>'Yes','No'=>'No'),array( 'separator' => "&nbsp; &nbsp;" )); ?>
		<?php echo $form->error($model,'SubsidizedRent'); ?>
	</div>

	<div class="row compactRadioGroup" >
		<?php echo $form->labelEx($model,'Income Qualified Unit'); ?><Br />
		<?php //echo $form->textField($model,'IncomeQualifiedUnit',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->radioButtonList($model,'IncomeQualifiedUnit',array('Yes'=>'Yes','No'=>'No'),
                    array( 'separator' => "&nbsp; &nbsp;" )); ?>
		<?php echo $form->error($model,'IncomeQualifiedUnit'); ?>
	</div>

	<div class="row compactRadioGroup">
		<?php echo $form->labelEx($model,'Water Sewer Included'); ?><Br />
		<?php //echo $form->textField($model,'WaterSewerIncluded',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->radioButtonList($model,'WaterSewerIncluded',array('Yes'=>'Yes','No'=>'No'),array( 'separator' => "&nbsp; &nbsp;" )); ?>
		<?php echo $form->error($model,'WaterSewerIncluded'); ?>
	</div>

	<div class="row compactRadioGroup">
		<?php echo $form->labelEx($model,'Heat Included'); ?><br />
		<?php //echo $form->textField($model,'HeatIncluded',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->radioButtonList($model,'HeatIncluded',array('Yes'=>'Yes','No'=>'No'),array( 'separator' => "&nbsp; &nbsp;" )); ?>
		<?php echo $form->error($model,'HeatIncluded'); ?>
	</div>

	<div class="row compactRadioGroup">
		<?php echo $form->labelEx($model,'Electric Included'); ?><Br />
        <?php echo $form->radioButtonList($model,'ElectricIncluded',array('Yes'=>'Yes','No'=>'No'), array( 'separator' => "&nbsp; &nbsp;" )); ?>
		<?php //echo $form->textField($model,'ElectricIncluded',array('size'=>3,'maxlength'=>3)); ?>
		<?php echo $form->error($model,'ElectricIncluded'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Add' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->